package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"zc2/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/register", &controllers.UserController{}, "post:Register")

	beego.Router("/login", &controllers.UserController{}, "post:Login")

	beego.Router("/add", &controllers.XsController{}, "post:Add")

	beego.Router("/del", &controllers.XsController{}, "post:Del")

	beego.Router("/update", &controllers.XsController{}, "post:Update")

	beego.Router("/list", &controllers.XsController{}, "post:List")
}
